public class Place {

    public static void main(String[] args) {
        int a1 = 1<<2;
        int a2 = a1>>2;
        int a3 = 1<<3;
        int a4 = -1>>2;
        int a5 = -1<<2;
        int a6 = 128>>>2;

        int a7 = 128>>>3;

        System.out.println("a1="+a1);

        System.out.println("a2="+a2);//2的2次方

        System.out.println("a3="+a3);//2的3次方 默认转成10进制

        System.out.println("a4="+a4);

        System.out.println("a5="+a5);

        System.out.println("a6="+a6);

        System.out.println("a7="+a7);
    }

}
